/*
 * Copyright (C) 2013 se-pro group
 * 
 */

package com.sepro.tim;



import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;

public class SearchActivity extends DashboardActivity implements OnItemClickListener
{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView (R.layout.activity_search);
	    setTitleFromActivityLabel (R.id.title_text);
	}

	@Override
	protected void onDestroy() {
		// TODO Auto-generated method stub
		super.onDestroy();
	}

	@Override
	protected void onPause() {
		// TODO Auto-generated method stub
		super.onPause();
	}

	@Override
	protected void onRestart() {
		// TODO Auto-generated method stub
		super.onRestart();
	}

	@Override
	protected void onResume() {
		// TODO Auto-generated method stub
		super.onResume();
	}

	@Override
	protected void onStart() {
		// TODO Auto-generated method stub
		super.onStart();
	}

	@Override
	protected void onStop() {
		// TODO Auto-generated method stub
		super.onStop();
	}

	@Override
	public void onItemClick(AdapterView<?> parent, View view, int pos, long id) {
		// TODO Auto-generated method stub
		
	}
	
	public void onClickSearchTo (View v)
	{
	    int id = v.getId ();
	    switch (id) {
	      case R.id.btSearchProject:
	    	  	startActivity (new Intent(getApplicationContext(), SearchProjectActivity.class));
	    	  	break;
	      case R.id.btSearchTask:
	    	  	startActivity (new Intent(getApplicationContext(), SearchTaskActivity.class));
	    	  	break;
	      case R.id.btSearchTaskTime:
	    	  	startActivity (new Intent(getApplicationContext(), SearchTaskTTableActivity.class));
	    	  	break;
	      case R.id.btSearchTimeTable:
	    	  	startActivity (new Intent(getApplicationContext(), SearchTimeTableActivity.class));
	    	  	break;
	    }
	}
	
//	protected void onCreate(Bundle savedInstanceState) 
//	{
//	    super.onCreate(savedInstanceState);
//	    setContentView (R.layout.activity_search);
//	    setTitleFromActivityLabel (R.id.title_text);
//	}

}
